<template>
    <div>CountStore2：{{ count }}
      <a-button type="primary" @click="add" style="margin-left: 20px">add2</a-button>
    </div>
</template>
<script lang="ts" setup>
import { computed } from 'vue'
import { useStore } from 'vuex'
// import tt from '../store/gvuex.ts'

const store: any = useStore()
const count = computed(() => store.state.count)
const add = () => {
  store.commit('add')
}
</script>

